--[[--
类名: EmaOverseaLoginView.lua
创建日期: 2016-5-31
创建人: 陈小虎
功能描述: 公告
修改内容：
修改日期:   
修改人:     
修改备注: 
]]

local EmaOverseaLoginView = class("EmaOverseaLoginView",function() 
    return display.newTouchLayer()
end)


function EmaOverseaLoginView:ctor()
    self.mUINode=cc.CSLoader:createNode(Res.EmaOverseaLoginUI)
    display.doLayout(self.mUINode)
    self:addChild(self.mUINode)
    self:initView()
end

function EmaOverseaLoginView:initView()
    self._ui = display.uiDelegate(self.mUINode)

 
    self._ui.Button_w:addClickEventListener(function()
            executeFunc(self._onOperate, "emaOversea", self)
        end)
end

function EmaOverseaLoginView:enableButtons(b)
    self._ui.Button_w:stopAllActions()
    self._ui.Button_w:setTouchEnabled(b)
    if not b then
        self._ui.Button_w:performWithDelay(function()
                self._ui.Button_w:setTouchEnabled(true)
            end, 0.2)
    end
end

function EmaOverseaLoginView:onOperate(cb)
    self._onOperate = cb
end


return EmaOverseaLoginView